<?php
define("DSN", 'mysql:host=localhost;dbname=lab10');
define("USER", 'root');
define('PASSWORD', '123456');

try{
	$pdo = new PDO(DSN, USER, PASSWORD);
}
catch(PDOException $e){
	echo '连接数据库失败：' . $e->getMessage();
}